
input_weight_str = input('请输入体重:\n')
weight_list = input_weight_str.split(',')
list_length = len(weight_list)
weight_avg = 0
weight_sum = 0
for item in weight_list:
    weight = float(item)
    weight_sum += weight

weight_avg = weight_sum / list_length

greater_than_avg = []
for item in weight_list:
    weight = float(item)
    if weight > weight_avg:
        greater_than_avg.append(weight)

print(greater_than_avg)
# for item in greater_than_avg:
#     print(f'比平均体重重的小朋友的体重有：{item}')
